package cn.edu.neusoft.maxingxin231.yuejian06.Model;

import cn.edu.neusoft.maxingxin231.yuejian06.Bean.ClubBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Bean.UserInforBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Iface.UserIface;
import cn.edu.neusoft.maxingxin231.yuejian06.Listener.LoginListener;
import cn.edu.neusoft.maxingxin231.yuejian06.Service.LoginService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class UserModel extends RetrofitBaseModel implements UserIface<UserInforBean> {
    private Retrofit retrofit;
    private LoginService loginService;

    public UserModel(){
        retrofit = getRetrofit();
        loginService = getLoginService();
    }
    @Override
    public void getUserInfor(String user_id, LoginListener<UserInforBean> loginListener) {
        Call<UserInforBean> call = loginService.getuserinfor(user_id);
        callenqueue(call,loginListener);
    }
}
